package cn.epsilon3.configBean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;

/**
 * oauth2 zfb 配置注入
 *
 * @author epsilon3
 * @date 2023/08/02
 */
@Component
@ConfigurationProperties(
        prefix = "epsilon3.config.oauth2.zfb"
)
public class InitializingZfbConfig {

    @NotBlank(message = "privateKey is blank")
    private String privateKey;

    @NotBlank(message = "alipayPublicKey is blank")
    private String alipayPublicKey;

    @NotBlank(message = "appId is blank")
    private String appId;


    public InitializingZfbConfig() {

    }

    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    public void setAlipayPublicKey(String alipayPublicKey) {
        this.alipayPublicKey = alipayPublicKey;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }
}
